gtk4.git
8 years agobroadway: Add missing dependency to build
Philip Withnall [Fri, 17 Nov 2017 10:03:35 +0000 (10:03 +0000)]
broadway: Add missing dependency to build

The generated file clienthtml.h is #included by broadway-server.c, which
is one of the sources of the broadway library — so clienthtml.h needs to
be one of the sources of that library too.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=790489

8 years agobroadway: Fix toplevel handling
Alexander Larsson [Fri, 17 Nov 2017 09:37:01 +0000 (10:37 +0100)]
broadway: Fix toplevel handling

The toplevels list contains GdkWindowImplBroadways, and we shouldn't
free it.

8 years agogdk: Remove gdk_flush()
Benjamin Otte [Fri, 17 Nov 2017 07:35:25 +0000 (08:35 +0100)]
gdk: Remove gdk_flush()

If you need to flush a display, use gdk_display_flush().

There is never a need to flush displays you don't know about.

8 years agogtk-demo: No need to gdk_flush() here
Benjamin Otte [Fri, 17 Nov 2017 07:34:57 +0000 (08:34 +0100)]
gtk-demo: No need to gdk_flush() here

And if there was a need, GDK should have done it.

8 years agotoolbar: Remove gdk_flush() calls
Benjamin Otte [Fri, 17 Nov 2017 06:51:22 +0000 (07:51 +0100)]
toolbar: Remove gdk_flush() calls

It's not 2003 anymore.

8 years agomain: Don't gdk_flush() after every main loop wait
Benjamin Otte [Fri, 17 Nov 2017 06:47:03 +0000 (07:47 +0100)]
main: Don't gdk_flush() after every main loop wait

For a start, this makes gtk_main() work different from g_main_loop_run()
calls.

But most importantly, modern GDK does proper syncing itself and doesn't
need to rely on a catch-all to get it right.

8 years agoAdd a comment
Matthias Clasen [Fri, 17 Nov 2017 05:37:10 +0000 (00:37 -0500)]
Add a comment

Document that gdk-private.h is meant for private gdk<>gtk apis.

8 years agoRemove gdkprivate.h
Matthias Clasen [Fri, 17 Nov 2017 05:34:04 +0000 (00:34 -0500)]
Remove gdkprivate.h

This is one-too-many private headers. Move the few
declarations here to gdkinternals.h.

8 years agoDrop generic error trap api from the docs
Matthias Clasen [Fri, 17 Nov 2017 05:17:29 +0000 (00:17 -0500)]
Drop generic error trap api from the docs

8 years agoDrop gdkmain.h
Matthias Clasen [Fri, 17 Nov 2017 05:13:21 +0000 (00:13 -0500)]
Drop gdkmain.h

8 years agoStop including gdkmain.h
Matthias Clasen [Fri, 17 Nov 2017 05:09:43 +0000 (00:09 -0500)]
Stop including gdkmain.h

It is empty now.

8 years agoDrop an empty file
Matthias Clasen [Fri, 17 Nov 2017 05:03:04 +0000 (00:03 -0500)]
Drop an empty file

Nothing deprecated left!

8 years agoDrop the error trap vfuncs
Matthias Clasen [Fri, 17 Nov 2017 05:02:01 +0000 (00:02 -0500)]
Drop the error trap vfuncs

No longer used.

8 years agoDrop the generic error trap api
Matthias Clasen [Fri, 17 Nov 2017 04:57:25 +0000 (23:57 -0500)]
Drop the generic error trap api

This is only implemented on X11, so we don't
need generic api for it.

8 years agotests: Test the x11-specific error trap api
Matthias Clasen [Fri, 17 Nov 2017 05:07:36 +0000 (00:07 -0500)]
tests: Test the x11-specific error trap api

The other one is gone.

8 years agox11: Fix error traps in the dnd code
Matthias Clasen [Fri, 17 Nov 2017 04:56:11 +0000 (23:56 -0500)]
x11: Fix error traps in the dnd code

The code for grabbing keys was using a generic
error trap call, and more concerning, it was forgetting
to pop the trap.

8 years agoselection: Use x11-specific traps
Matthias Clasen [Fri, 17 Nov 2017 04:42:55 +0000 (23:42 -0500)]
selection: Use x11-specific traps

The generic trap api is going away.

8 years agomountoperation-x11: Use x11-specific traps
Matthias Clasen [Fri, 17 Nov 2017 04:36:21 +0000 (23:36 -0500)]
mountoperation-x11: Use x11-specific traps

The generic trap api is going away.

8 years agoDrop an unused variable
Matthias Clasen [Fri, 17 Nov 2017 04:27:00 +0000 (23:27 -0500)]
Drop an unused variable

These are no longer used.

8 years agoDrop a duplicate definition
Matthias Clasen [Fri, 17 Nov 2017 04:23:42 +0000 (23:23 -0500)]
Drop a duplicate definition

GDK_PRIORITY_EVENTS is already defined in gdkevents.h

8 years agoDrop gdk_set_program_class
Matthias Clasen [Fri, 17 Nov 2017 04:22:08 +0000 (23:22 -0500)]
Drop gdk_set_program_class

Together with the corresponding getter.
This is x11-specific functionality.

8 years agox11: Add gdk_x11_display_set_program_class
Matthias Clasen [Fri, 17 Nov 2017 04:18:58 +0000 (23:18 -0500)]
x11: Add gdk_x11_display_set_program_class

The program class is a very X-specific concept.
There should be x11-backend api to deal with it.

8 years agowayland: Stop using gdk_get_program_class
Matthias Clasen [Fri, 17 Nov 2017 04:18:03 +0000 (23:18 -0500)]
wayland: Stop using gdk_get_program_class

This is an abuse, at best. If we need to pass the
app id down here, lets pass the app id.

8 years agoRemove gdk/gdkx.h
Matthias Clasen [Fri, 17 Nov 2017 04:00:01 +0000 (23:00 -0500)]
Remove gdk/gdkx.h

It was just a kludge.

8 years agoMove some code around
Matthias Clasen [Fri, 17 Nov 2017 03:54:26 +0000 (22:54 -0500)]
Move some code around

Move gdk_disable_multidevice to gdkdisplaymanager.[hc].

8 years agoDrop gdk_notify_startup_complete
Matthias Clasen [Fri, 17 Nov 2017 03:45:52 +0000 (22:45 -0500)]
Drop gdk_notify_startup_complete

This function and its variant are just wrappers
around the display-specific function.

8 years agogtk: Stop using gdk_notify_startup_complete_with_id
Matthias Clasen [Fri, 17 Nov 2017 03:45:04 +0000 (22:45 -0500)]
gtk: Stop using gdk_notify_startup_complete_with_id

This function is about to go away. Instead, use the
display-specific function that this is a wrapper of.

8 years agogdk: Move some headers around
Matthias Clasen [Fri, 17 Nov 2017 03:18:45 +0000 (22:18 -0500)]
gdk: Move some headers around

Move gdk_flush and gdk_set_allowed_backends to where they
belong.

8 years agoDrop gdk_beep
Matthias Clasen [Fri, 17 Nov 2017 03:10:26 +0000 (22:10 -0500)]
Drop gdk_beep

This is an unnecessary wrapper around gdk_display_beep.

8 years agoim context thai: Stop using gdk_beep
Matthias Clasen [Fri, 17 Nov 2017 03:09:44 +0000 (22:09 -0500)]
im context thai: Stop using gdk_beep

It is about to go away.

8 years agoDrop gdk_set_double_click_time
Matthias Clasen [Fri, 17 Nov 2017 03:04:25 +0000 (22:04 -0500)]
Drop gdk_set_double_click_time

This is an unnecessary and not-recommended-to-be-used
wrapper around gdk_display_set_double_click_time.

8 years agoselection: Remove the info uint
Benjamin Otte [Thu, 16 Nov 2017 21:50:37 +0000 (22:50 +0100)]
selection: Remove the info uint

Instead of allowing people to pass a uint user-data, insist on them
comparing mime types.

The user data was a uint instead of a pointer anyway, so uniqueness
could not be guaranteed and it caused more issues than it was worth.
And that's ignoring the fact that it basically wasn't used.

8 years agoselection: Remove gtk_target_table_*() functions
Benjamin Otte [Wed, 15 Nov 2017 23:51:06 +0000 (00:51 +0100)]
selection: Remove gtk_target_table_*() functions

8 years agotextview: Stop playing shenanigans with the target list
Benjamin Otte [Wed, 15 Nov 2017 23:43:31 +0000 (00:43 +0100)]
textview: Stop playing shenanigans with the target list

This breaks GtkSourceView adding custom targets on top of GtkTextView,
but we'll fix that later.

8 years agoselection: Make GtkTargetEntry not allocatable
Benjamin Otte [Wed, 15 Nov 2017 18:47:56 +0000 (19:47 +0100)]
selection: Make GtkTargetEntry not allocatable

And remove it being registered as a boxed type (lol).

8 years agoHighContrast: misc fixes
Matthias Clasen [Wed, 15 Nov 2017 23:08:46 +0000 (18:08 -0500)]
HighContrast: misc fixes

The HighContrast theme was not parsing anymore, due to
leftover widget style properties, and some missed cleanups,
like -gtk-icon-effect. Also update for the new focus handling,
and make checks and radios sharp again.

8 years agoAdwaita: Make checks and radios sharp again
Matthias Clasen [Wed, 15 Nov 2017 23:07:52 +0000 (18:07 -0500)]
Adwaita: Make checks and radios sharp again

The assets we have are 14x14, set -gtk-icon-size to reflect that.

8 years agoChange icon-size properties
Matthias Clasen [Wed, 15 Nov 2017 19:20:40 +0000 (14:20 -0500)]
Change icon-size properties

We no longer support registering custom icon sizes, so
we can make these properties just enums. This also lets
us specify them by nick in ui files. Nice!

8 years agoimage: Update docs
Matthias Clasen [Wed, 15 Nov 2017 18:23:51 +0000 (13:23 -0500)]
image: Update docs

Mention the new icon-size style classes, update the docs
for removed arguments and return values, and add new
functions to the docs.

8 years agoDocument -gtk-icon-size
Matthias Clasen [Wed, 15 Nov 2017 18:14:36 +0000 (13:14 -0500)]
Document -gtk-icon-size

Add this property to the list of CSS properties.

8 years agoSupport -gtk-icon-size for builtins
Matthias Clasen [Wed, 15 Nov 2017 13:11:01 +0000 (08:11 -0500)]
Support -gtk-icon-size for builtins

This makes css icons more similar to themed icons, which
is the overall goal here.

8 years agoDrop gtk_icon_size_lookup
Matthias Clasen [Wed, 15 Nov 2017 04:30:58 +0000 (23:30 -0500)]
Drop gtk_icon_size_lookup

Add a new, private gtk_image_get_image_size to replace it, and
update the remaining callers in a suitable way.

8 years agorecentchooser: Use GIcon instead of GdkPixbuf
Matthias Clasen [Wed, 15 Nov 2017 03:38:10 +0000 (22:38 -0500)]
recentchooser: Use GIcon instead of GdkPixbuf

8 years agoiconhelper: Query size via CSS
Matthias Clasen [Wed, 15 Nov 2017 03:29:31 +0000 (22:29 -0500)]
iconhelper: Query size via CSS

Instead of looking at the icon size, look at the CSS value for
-gtk-icon-size. Set style classes depending on icon size instead.

Trivially change Adwaita and HighContrast to report the same values as
before.

8 years agoenums: Change GtkIconSize values
Matthias Clasen [Wed, 15 Nov 2017 02:14:47 +0000 (21:14 -0500)]
enums: Change GtkIconSize values

The new values are the ones we intend to keep. The old ones had
duplicated meanings and nobody knew which one to take.

8 years agoimage: Don't take icon size in set_from_definition()
Benjamin Otte [Tue, 24 Jan 2017 02:14:53 +0000 (03:14 +0100)]
image: Don't take icon size in set_from_definition()

8 years agofilechooserwidget: icon size is always 16
Matthias Clasen [Wed, 15 Nov 2017 00:48:59 +0000 (19:48 -0500)]
filechooserwidget: icon size is always 16

8 years agofilechooserbutton: icon size is always 16
Matthias Clasen [Wed, 15 Nov 2017 00:47:04 +0000 (19:47 -0500)]
filechooserbutton: icon size is always 16

So define it that way.

8 years agocellrendererspinner: Don't track old icon size
Benjamin Otte [Mon, 23 Jan 2017 18:59:27 +0000 (19:59 +0100)]
cellrendererspinner: Don't track old icon size

It was only used to avoid gtk_icon_size_lookup() calls and those aren't
expensive.

8 years agoimage: Remove icon-size argument from icon setters
Matthias Clasen [Wed, 15 Nov 2017 00:43:13 +0000 (19:43 -0500)]
image: Remove icon-size argument from icon setters

Instead, add a function gtk_image_set_icon_size() for the cases where
overriding the icon size is necessary.

Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear()
no longer unsets the icon size.

8 years agoimage: Change getters
Benjamin Otte [Sun, 22 Jan 2017 21:58:45 +0000 (22:58 +0100)]
image: Change getters

Instead of returning the icon size with them, make
gtk_image_get_icon_name() and gtk_image_get_gicon() only return the icon
itself.

As a benefit, we can turn them into regular getters that return values
instead of requiring out parameters.

Instead, provide gtk_image_get_icon_size() to query the icon size.

8 years agobutton: Get rid of icon size
Benjamin Otte [Fri, 20 Jan 2017 07:02:48 +0000 (08:02 +0100)]
button: Get rid of icon size

In fact, make gtk_button_new_from_icon_name() just set the icon-name
property instead of creating a GtkImage.

8 years agoscalebutton: Remove icon size
Benjamin Otte [Fri, 20 Jan 2017 06:49:11 +0000 (07:49 +0100)]
scalebutton: Remove icon size

8 years agotoolbar: Remove icon sizes
Benjamin Otte [Fri, 20 Jan 2017 02:16:39 +0000 (03:16 +0100)]
toolbar: Remove icon sizes

8 years agotooltips: Remove GtkIconSize usage
Benjamin Otte [Fri, 20 Jan 2017 01:02:44 +0000 (02:02 +0100)]
tooltips: Remove GtkIconSize usage

8 years agocss: Add -gtk-icon-size
Benjamin Otte [Fri, 20 Jan 2017 00:50:50 +0000 (01:50 +0100)]
css: Add -gtk-icon-size

This will replace GtkIconSize in future patches.

8 years agointrospection: Fix build
Benjamin Otte [Wed, 15 Nov 2017 18:33:26 +0000 (19:33 +0100)]
introspection: Fix build

8 years agowayland: Fix initial cursor
Benjamin Otte [Wed, 15 Nov 2017 18:05:48 +0000 (19:05 +0100)]
wayland: Fix initial cursor

Make sure the initial cursor isn't random which would happen due to an
early exit when cursor == pointer->cursor triggered because both were
NULL.

8 years agogdk: Replace GDK_NONE with NULL
Benjamin Otte [Wed, 15 Nov 2017 17:13:31 +0000 (18:13 +0100)]
gdk: Replace GDK_NONE with NULL

8 years agogdk: Turn GdkAtom into a const char *
Benjamin Otte [Wed, 15 Nov 2017 15:57:33 +0000 (16:57 +0100)]
gdk: Turn GdkAtom into a const char *

Instead of an integer, it is now a char pointer. We also use
g_intern_string() instead of doing the interning ourselves.

8 years agogdk: Make GDK_NONE Atom translate to NULL
Benjamin Otte [Wed, 15 Nov 2017 15:45:12 +0000 (16:45 +0100)]
gdk: Make GDK_NONE Atom translate to NULL

Instead of the string "NONE" we now use NULL.

8 years agogdk: Get rid of magic special atoms
Benjamin Otte [Wed, 15 Nov 2017 03:42:10 +0000 (04:42 +0100)]
gdk: Get rid of magic special atoms

8 years agox11: Remove special casing for GdkAtoms
Benjamin Otte [Wed, 15 Nov 2017 03:07:11 +0000 (04:07 +0100)]
x11: Remove special casing for GdkAtoms

This is in preparation for the GdkAtom removal

8 years agodnd: Make GtkDragDest and GtkDragSource use GtkTargetList
Benjamin Otte [Tue, 14 Nov 2017 21:32:23 +0000 (22:32 +0100)]
dnd: Make GtkDragDest and GtkDragSource use GtkTargetList

This gets rid of GtkTargetEntry in the API and consistently uses
GtkTargetList.

8 years agoclipboard: Consistently use GtkTargetList
Benjamin Otte [Tue, 14 Nov 2017 04:34:15 +0000 (05:34 +0100)]
clipboard: Consistently use GtkTargetList

Some code was using GtkTargetList, some used GtkTargetEntry and some
GtkTargetPair.

8 years agoselection: Remove #ifdef WAYLAND
Benjamin Otte [Tue, 14 Nov 2017 02:56:35 +0000 (03:56 +0100)]
selection: Remove #ifdef WAYLAND

Instead, turn the functions into backend API:
  gdk_broadway_display_add_selection_targets()
  gdk_broadway_display_clear_selection_targets()
Remove the old per-backend functions, too.

8 years agocellrendererpixbuf: Remove stock-detail property
Benjamin Otte [Fri, 20 Jan 2017 23:45:22 +0000 (00:45 +0100)]
cellrendererpixbuf: Remove stock-detail property

GTK3 didn't use that property already...

8 years agomessagedialog: Remove unused header
Benjamin Otte [Fri, 20 Jan 2017 01:02:32 +0000 (02:02 +0100)]
messagedialog: Remove unused header

8 years agowin32: Remove all checks for GDK_WINDOW_ROOT
Matthias Clasen [Tue, 14 Nov 2017 23:09:32 +0000 (18:09 -0500)]
win32: Remove all checks for GDK_WINDOW_ROOT

We are no longer creating windows of this type, so no
need to check for it.

8 years agowin32: Remove all uses of get_root_window
Matthias Clasen [Tue, 14 Nov 2017 23:05:41 +0000 (18:05 -0500)]
win32: Remove all uses of get_root_window

This is following similar changes done in the x11 and
broadway backends, but it has not been built.
Some fixups may be needed.

8 years agoplacessiderbar: Fix sunny compilation
Benjamin Otte [Mon, 13 Nov 2017 22:44:26 +0000 (23:44 +0100)]
placessiderbar: Fix sunny compilation

Make compilation not warn about unused variables when compiling with
HAVE_CLOUDPROVIDERS undefined.

8 years agowidget: No need to update events
Benjamin Otte [Mon, 13 Nov 2017 17:34:01 +0000 (18:34 +0100)]
widget: No need to update events

GtkWindow queues for all events anyway, so the needed ones are already
there.

8 years agogdkwindow: Remove event_mask arguments from constructors
Benjamin Otte [Mon, 13 Nov 2017 17:00:31 +0000 (18:00 +0100)]
gdkwindow: Remove event_mask arguments from constructors

8 years agowindow: Set ALL_EVENT_MASK
Benjamin Otte [Mon, 13 Nov 2017 16:31:04 +0000 (17:31 +0100)]
window: Set ALL_EVENT_MASK

This is a trivial commit that does a big change: We now ignore event masks.

Further commits will clean up code, but if bisection ends up here, you
know it's because code is getting delivered events that it weren't getting
before.

8 years agogdk: Fix GDK_ALL_EVENTS_MASK
Benjamin Otte [Mon, 13 Nov 2017 16:06:34 +0000 (17:06 +0100)]
gdk: Fix GDK_ALL_EVENTS_MASK

This mask was forgotten to update when the last 2 event masks were
added, probably because it looks like it's already maxed.

8 years agowidget: Remove gtk_widget_set_device_enabled()
Benjamin Otte [Mon, 13 Nov 2017 15:51:35 +0000 (16:51 +0100)]
widget: Remove gtk_widget_set_device_enabled()

Nobody is using it.

8 years agox11: Remove mentions of GDK_WINDOW_ROOT
Matthias Clasen [Mon, 13 Nov 2017 21:47:50 +0000 (16:47 -0500)]
x11: Remove mentions of GDK_WINDOW_ROOT

This backend never creates a window of this type, so no
need to check for it anymore.

8 years agox11: Stop creating a root window
Matthias Clasen [Mon, 13 Nov 2017 21:39:54 +0000 (16:39 -0500)]
x11: Stop creating a root window

We no longer need it.

8 years agox11: Store toplevel list in GdkDisplay
Matthias Clasen [Mon, 13 Nov 2017 21:32:34 +0000 (16:32 -0500)]
x11: Store toplevel list in GdkDisplay

This will let us get rid of the root window.

8 years agox11: Remove another use of the root window
Matthias Clasen [Mon, 13 Nov 2017 21:09:47 +0000 (16:09 -0500)]
x11: Remove another use of the root window

We just need the X root window here.

8 years agoicontheme: Add a trailing / when enumerating resources
Matthias Clasen [Mon, 13 Nov 2017 17:12:52 +0000 (12:12 -0500)]
icontheme: Add a trailing / when enumerating resources

This avoids extra string copies in GResource.

8 years agogtkplacessidebar: Fix new tab/window handling for cloud accounts
Carlos Soriano [Mon, 30 Oct 2017 20:47:07 +0000 (21:47 +0100)]
gtkplacessidebar: Fix new tab/window handling for cloud accounts

It wasn't taking into account whether the sidebar had support for them
or not, resulting in a file chooser with open in new tab/window menu
items when it's not supported.

To fix it, do as with the other menus and check for the availability of
new tab/window flags.

https://bugzilla.gnome.org/show_bug.cgi?id=786123

8 years agogtkplacessidebar: Adapt to libcloudproviders 0.2.x
Carlos Soriano [Mon, 30 Oct 2017 20:38:41 +0000 (21:38 +0100)]
gtkplacessidebar: Adapt to libcloudproviders 0.2.x

And a few improvements on the way.

https://bugzilla.gnome.org/show_bug.cgi?id=786123

8 years agoapplication: Append a / to the icon resource path
Matthias Clasen [Mon, 13 Nov 2017 12:35:18 +0000 (07:35 -0500)]
application: Append a / to the icon resource path

g_resources_enumerate_children expects the path to end
in a '/' (even though thats not stated in the docs), and
will copy it if that isn't the case. Avoid the copy
by putting  a '/' there to begin with.

8 years agoicontheme: Append a / to the resource path
Matthias Clasen [Mon, 13 Nov 2017 12:33:35 +0000 (07:33 -0500)]
icontheme: Append a / to the resource path

g_resources_enumerate_children expects the path to end
in a '/' (even though thats not stated in the docs), and
will copy it if that isn't the case. Avoid the copy
by putting  a '/' there to begin with.

8 years agoa11y: Handle a treeview with no columns
Benjamin Otte [Mon, 13 Nov 2017 02:51:53 +0000 (03:51 +0100)]
a11y: Handle a treeview with no columns

Code was spewing criticals to stderr because of nonexisting columns. So
check that there's actually an existing column first.

8 years agotreeview: Only update vadjustment in size_allocate()
Benjamin Otte [Mon, 13 Nov 2017 00:53:45 +0000 (01:53 +0100)]
treeview: Only update vadjustment in size_allocate()

The 2 calls even do different things, but because the one in allocate
always overrides the one here...

8 years agotreeview: Pass height to allocate as argument
Benjamin Otte [Mon, 13 Nov 2017 00:23:16 +0000 (01:23 +0100)]
treeview: Pass height to allocate as argument

Instead of exporting a function to query it.

8 years agoprogresstracker: Don't hand out NaN
Benjamin Otte [Sun, 12 Nov 2017 05:19:00 +0000 (06:19 +0100)]
progresstracker: Don't hand out NaN

When the duration is set to 0, clamp it to 1us. This way we're almost
correct: We should really instantly finish, but we don't. But we do
respect the delay.

Doing this properly would require some refactoring of how the progress
tracker actually maintains progress, and this is just a quick fix.

8 years agotreeview: Use gtk_widget_get_width()
Benjamin Otte [Sun, 12 Nov 2017 04:46:06 +0000 (05:46 +0100)]
treeview: Use gtk_widget_get_width()

... instead of gtk_widget_get_allocated_width() and same for height.

This makes the treeview do the right thing when used with padding.

8 years agotreeview: Don't allocate columns outside of size_allocate()
Benjamin Otte [Sun, 12 Nov 2017 04:38:58 +0000 (05:38 +0100)]
treeview: Don't allocate columns outside of size_allocate()

8 years agotreeview: Fix RTL column header allocation
Benjamin Otte [Sun, 12 Nov 2017 04:37:06 +0000 (05:37 +0100)]
treeview: Fix RTL column header allocation

8 years agotreeview: width_changed is always true, so remove it
Benjamin Otte [Sun, 12 Nov 2017 03:55:17 +0000 (04:55 +0100)]
treeview: width_changed is always true, so remove it

Also, sanitize the RTL correction code that made sure resizing the width
of a treeview would keep the contents glued to the right border instead
of the left border.

8 years agox11: Fix a crash
Matthias Clasen [Sat, 11 Nov 2017 17:07:11 +0000 (12:07 -0500)]
x11: Fix a crash

This was crashing the moment a second window is opened.

8 years agoFix up managed dnd
Matthias Clasen [Sat, 11 Nov 2017 12:46:59 +0000 (07:46 -0500)]
Fix up managed dnd

Since commit 6c56d04cee23d3340cf7cf08756c610efe9ccdab,
we were doing some calls twice in the managed dnd case,
leading to double drops.

8 years agotextview: Remove GDK windows
Benjamin Otte [Sat, 11 Nov 2017 04:37:37 +0000 (05:37 +0100)]
textview: Remove GDK windows

8 years agotextview: Simplify gtk_text_view_buffer_to_window_coords()
Benjamin Otte [Sat, 11 Nov 2017 04:22:17 +0000 (05:22 +0100)]
textview: Simplify gtk_text_view_buffer_to_window_coords()

... and gtk_text_view_window_to_buffer_coords()

8 years agotextview: Use text_window_get_width()/height()
Benjamin Otte [Sat, 11 Nov 2017 04:12:07 +0000 (05:12 +0100)]
textview: Use text_window_get_width()/height()

Instead of poking the GdkWindow. They have the same size after all.

8 years agotextview: Make the semi-private headrs really private
Benjamin Otte [Sat, 11 Nov 2017 04:01:31 +0000 (05:01 +0100)]
textview: Make the semi-private headrs really private

Rename the files to have the private.h ending.

And remove gtktextdisplay.h from the installed files.

8 years agotextview: Store border window sizes in a custom struct
Benjamin Otte [Sat, 11 Nov 2017 03:30:00 +0000 (04:30 +0100)]
textview: Store border window sizes in a custom struct

That way, we don't need to have a GtKRequisition in every TextWindow.